package com.zhao.data.redis;

import java.io.Serializable;
import java.util.Map;

/**
 * Redis
 * 
 * @author zhaoyongfei
 *
 */
public interface MessageDelegate {
	void handleMessage(String message);

	void handleMessage(Map<String, Object> message);

	void handleMessage(byte[] message);

	void handleMessage(Serializable message);

	// pass the channel/pattern as well
	void handleMessage(Serializable message, String channel);
}